<template>
    <div class="top">
      <div class="top_left" @click="handleisshow">
        <i class="el-icon-s-fold"></i>
      </div>
      <div class="nav">
          <Munu ref="sub"/>
          <div class="box">
         <!-- <div class="router_view">
          <router-view></router-view>
        </div> -->
          </div>
      </div>
    </div>
</template>

<script>
import Munu from "./Menu.vue"
export default {
    components:{
        Munu
    },
    methods:{
        handleisshow(){
            // console.log(this.$refs.sub.changFn());
           this.$refs.sub.changFn()
        }
    }
};
</script>

<style scoped>
 .top {
  /* padding: 15px; */
  height: 50px;
  background: #000;
  /* display: flex;
  justify-content: space-between;
  align-items: center; */
  
  font-size: 30px;
  color: white;
}
.top .top_left{
    margin-left: 15px;
}
.nav{
    display: flex;
    margin-top: 10px;

}
.nav .box{
    flex: 1;
}
</style>